/**
 * url = 'https://spa2.scrape.center/page/1'
 * 接url中的token值
 */

const n = require('crypto-js');
function i() {
    for (var t = Math.round((new Date).getTime() / 1e3).toString(), e = arguments.length, r = new Array(e), i = 0; i < e; i++)
        r[i] = arguments[i];
    r.push(t);
    var o = n.SHA1(r.join(",")).toString(n.enc.Hex)
      , c = n.enc.Base64.stringify(n.enc.Utf8.parse([o, t].join(",")));
    return c
}
var page =1;
var a = (page - 1) * 10;
token = e = i('/api/movie', a)
console.log(token)
function main(page) {
  var a = (page - 1) * 10;
  token = i('/api/movie', a)
  return {offset:a,token:token}
}